package com.example.comment.controller;

import com.example.comment.pojo.ApCommentDto;
import com.example.comment.service.ApCommentService;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApCommentController {
    @Autowired
    private ApCommentService apCommentService;

    @PostMapping("/apcommnent/v1/add_apcomment")
    public ResponseResult addApComment(@RequestBody ApCommentDto apCommentDto){
        return apCommentService.addComment(apCommentDto);
    }

}
